<root xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/">
    <metadata>
        <type>msexcel</type>
    </metadata>

    <report><pages><page title="Export">
        <set py:for="n, col in enumerate(columns)"
            range="${chr(ord('A') + n)}1"
            py:content="col.caption" />

        <span py:for="y, row in enumerate(records)" py:strip="True">
            <set py:for="x, col in enumerate(columns)"
                range="${chr(ord('A') + x)}${y + 2}"
                py:content="getattr(row, col.name)" />
        </span>
    </page></pages></report>

    <template>
        <filename>${template_filename}</filename>
        <data>${template_data}</data>
    </template>
</root>
